<%@ tag display-name="tile" body-content="empty"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ attribute name="tile" type="com.starhub.web.model.Tile" required="true" rtexprvalue="true" description="tile"%>
<%@ attribute name="isAdmin" type="java.lang.Boolean" required="false"%>

<c:choose>
	<c:when test="${isAdmin}">
		<a title="${tile.title}" class="cell11 cell" style="height: 203px;" onclick="starhub.mobile.editTile(${tile.id})">
	</c:when>
	<c:otherwise>
		<a title="${tile.title}" class="cell11 cell" href="${tile.link}" style="height: 203px;">
	</c:otherwise>
</c:choose>

  <div class="inner">
     <div class="icon-wrap">
        <img onload="windowResize()" class="key-icon-placeholder" src="images/icons/keytask-placeholder.gif">
         <img alt="" class="key-icon" src="${tile.image}">
      </div>
      <div class="cell-content">
         <h3>${tile.title}</h3>
         <span>${tile.text}</span>
      </div>
   </div>
</a>